<%@ page language="java" import="java.util.*,com.hsd.core.dbutils.*,com.hsd.survey.model.*,com.hsd.core.utils.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<% 
PageUtil pageUtil = (PageUtil)request.getAttribute("dataList"); 
String surveyName = (String)request.getAttribute("surveyName");

List dataList = null;
String pageStr = "";
int perpageCount = 0;
int currentPage = 0;
if(pageUtil != null){
	   dataList = pageUtil.getPageList();
	   pageStr = pageUtil.getPageStr();
	   perpageCount = pageUtil.getNumberPerPage();
	   currentPage = pageUtil.getCurrentPage();
}

%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/app/include.jsp"%>
	</head>
	<body>
		<div class="right_content">
			<div class="breadcrumb">
				<ul>
					<li>
						健康监测
						<span>/</span>
					</li>
					<li class="active">
						问卷调查
					</li>
				</ul>
			</div>
			<div class="sear">
				<input type="text" id="surveyName" name="surveyName" style="width: 400px;" />
				<input type="button" value="检索" onclick="searchSurvey();" class="btn btn-primary" />
			</div>
			<ul class="tab">
				<li class="active">
					<span>全部问卷</span>
				</li>
				<li>
					<span>全高血压</span>
				</li>
				<li>
					<span>亚健康</span>
				</li>
				<li>
					<span>心血管</span>
				</li>
			</ul>
			<div class="tab-content">
				<div class="sear">
					<strong>筛选</strong>
					<select>
						<option>
							所有被访问者
						</option>
					</select>
					<select>
						<option>
							所有问卷
						</option>
					</select>
				</div> 
				<ul class="result-list">
				   <%if(dataList != null && dataList.size()>0){  
			   			 for(int i =0;i<dataList.size();i++){
			      			 HsdModelSurvey obj = (HsdModelSurvey)dataList.get(i); 
			       
			        %>
					<li>
						<div class="pull-left">
							<a href="" class="title"><%=obj.getName()==null?"":obj.getName() %></a>
							<p>
								<%=obj.getDescription()==null?"":obj.getDescription() %>
								<br />
								问卷分类：<%=obj.getCreatetype()==null?"健康监测":obj.getCreatetype() %>&nbsp;&nbsp;&nbsp;&nbsp;创建日期：<%=obj.getCreatetime()==null?"":obj.getCreatetime() %>&nbsp;&nbsp;&nbsp;&nbsp;共<%=obj.getPagecount()==null?"0":obj.getPagecount()%>页<%=obj.getQuestioncount()==null?"0":obj.getQuestioncount()%>个问题&nbsp;&nbsp;&nbsp;&nbsp;40人体验答题
							</p>
						</div>
						<div class="pull-right">
							<a href="#" class="answer">体验</a>
							<a href="#" class="view-result">查看结果</a>
						</div>
					</li>
					<%}}else{ %>
					<li>
						<div class="pull-left">
							 <font color=red>提示:当前没有可用的问卷信息!</font>
						</div>
						 
					</li>
				  <%} %>
				</ul>
				<!--分页-->
				<div class="page-wrap">
  		      <div class="pull-left">&nbsp;</div>
                 <%=pageStr %>
		      </div>
				<!--/分页-->
			</div>
		</div>
	</body>
</html>


